#!/usr/bin/env node

const koa = require('koa'),
      logger = require('./middleware/logger.js'),
      log = console.log;

const app = new koa();

app.use(logger);

app.use((ctx,next)=>{//M-hello
  ctx.body='hello koa';
});
app.listen(8080);
